home *** CD-ROM | disk | FTP | other *** search
- Path: ccshst05.cs.uoguelph.ca!ccshst01!thay
- From: thay@uoguelph.ca (Toby K Hay)
- Newsgroups: comp.lang.c
- Subject: Re: sin function in Turbo C 3
- Date: 28 Feb 1996 21:05:28 GMT
- Organization: University of Guelph
- Message-ID: <4h2g2o$ndc@ccshst05.cs.uoguelph.ca>
- References: <4h2al3$rim@mulgave.octacon.co.uk>
- NNTP-Posting-Host: ccshst01.cs.uoguelph.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- Nik Palmer (Nik.Palmer@onyx.octacon.co.uk) wrote:
- : when findng the angle in trigonometry on my calc I use the sin-1
- : function to give me the answer in degrees a la
- : sin(theta)=opp/hyp
- : but Turbo C only has the sin function how do I get the answer in
- : degrees(or radians)
-
- When you write sin-1 do you mean the inverse operation of sin()? If so,
- it's called arcsine and found in math.h as asin(). I believe it's an
- ANSI C function - it's definitely in TurboC.
-
- : when dividing doubles using the / function I would like to have the
- : answer in the form 10/3 = 3.3333etc like I know I lose the fraction,
- : I can get around this using the other functions which provide me with
- : the remiander to redivide, or multiply the number to be divided by
- : 1000 then do some bits to get the result.
-
- I'm baffled. Could you restate the question?
- Toby Hay thay@uoguelph.ca
-